package com.lk.service;

import com.lk.model.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;
import javax.servlet.http.HttpServletRequest;

public interface UserService extends IService<User> {


    /**
     *
     * @param userAccount 用户账户
     * @param userPassword  用户密码
     * @param checkPassword  二次确认密码
     * @return  返回用户id
     */
    long userRegister(String userAccount,String userPassword,String checkPassword);


    /**
     * @param userAccount  用户账号
     * @param userPassword 用户密码
     * @param request
     * @return 返回脱敏后的用户信息
     */
    User userLogin(String userAccount, String userPassword, HttpServletRequest request);

    /**
     * 用户脱敏
     * @param originUser
     * @return
     */
    User getSafetyUser(User originUser);


    /**
     * 用户注销
     *
     * @param request
     * @return
     */
    boolean userLogout(HttpServletRequest request);
}
